//
//  ViewController.m
//  ImagePicker
//
//  Created by YH on 2018/4/23.
//  Copyright © 2018年 王跃. All rights reserved.
//

#import "ViewController.h"
#import "LoopProgressView.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(50, 300, 100, 100);
    button.backgroundColor = [UIColor blackColor];
    [button addTarget:self action:@selector(respondsToButton) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
}

- (void)respondsToButton
{
    UIViewController *vc = [[NSClassFromString(@"SmallVideoViewController") alloc] init];
    [self presentViewController:vc animated:YES completion:nil];

    /*仿ActionSheet底部弹框的UI效果  后期会完善*/
    //UIViewController *vc = [[NSClassFromString(@"SmallVideoViewController") alloc] init];
    //vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
    //[self presentViewController:vc animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
